<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .active {
        border: 1px solid red;
        width: 100px;
        height: 100px;
      }
      .hehe {
        background-color: hotpink;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- <div :class="[ active, hehe, 'dada' ]">hehe</div> -->
      <div :class="classArr">hehe</div>
    </div>

    <script src="../vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          // active: 'active',
          // hehe: 'hehe123',
          // 数组元素即为类型，值的类型都应该是字符串
          classArr: ['active', 'hehe', 'data'],
        },
      });
    </script>
  </body>
</html>
